#coding:utf8

from fdfs_client.client import Fdfs_client
#创建客户端
client = Fdfs_client('客户端的配置文件路径')

client.upload_by_filename('上传文件的路径')

#'Remote file_id': 'group1/M00/00/02/wKjlhVtFY_yAcOFLAAB9AY9TCZE763.jpg',
#上传到 Storage的位置

#上传成功返回的内容
<fdfs_client.fdfs_protol.Tracker_header object at 0x7ff84b736978>
{'Status': 'Upload successed.',
 'Group name': 'group1',
 'Uploaded size': '31.00KB',
 'Storage IP': '192.168.229.133',
 'Remote file_id': 'group1/M00/00/02/wKjlhVtFY_yAcOFLAAB9AY9TCZE763.jpg',
 'Local file name': '/home/python/Desktop/images/3.jpg'}
